[Unit]
Description=The OpenQuake Engine DbServer
Documentation=https://github.com/gem/oq-engine/
After=network.target

[Service]
User=openquake
Group=openquake
Environment=OQ_WORKERPOOL_ERROR=1
WorkingDirectory={{ workdir_services }}
ExecStart=/opt/openquake/bin/oq dbserver start -f
Restart=always
RestartSec=30
KillMode=control-group
TimeoutStopSec=10

[Install]
WantedBy=multi-user.target
